package cn.linshu.security.jwt.exception;

/**
 * -*- coding: utf-8 -*-
 *
 * @Author linnin
 * @Name springboot3-labs-master
 * @Time 2025/2/3 23:42
 * @Note
 * @For
 * @Out Copyright© 2025 linnin
 */
public class BusinessException extends RuntimeException {

    private long code;

    public BusinessException(String message) {
        super(message);
    }
    public BusinessException(long code,String message) {
        super(message);
        this.code = code;
    }

    public BusinessException(Throwable cause) {
        super(cause);
    }

    public BusinessException(String message, Throwable cause) {
        super(message, cause);
    }

    public long getCode() {
        return code;
    }
}
